package com.lottery.material.service.portal.competition;

import com.lottery.material.entity.article.CompetitionInfo;
import com.lottery.material.service.base.BaseService;

import java.util.List;

/**
 * @Author:houjie
 * @Description: 赛事接口
 * @Date:Create in 2019/4/10 14:22
 */
public interface CompetitionInfoService extends BaseService<CompetitionInfo,Integer> {

    /**
     * @Author: houjie
     * @Description: 根据赛事类型及赛事状态获取赛事列表
     * @Date: 2019/4/10 14:37
     */
    List<CompetitionInfo> findAllByCompetitionTypeAndState(Integer competitionType, Integer state);

    /**
    * @Author: houjie
    * @Description: 根据赛事编号查询比赛
    * @Date: 2019/4/10 16:03
    */
    CompetitionInfo findByCompetitionTypeAndOpenId(Integer CompetitionType,String openId);
}
